﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using AddonService.Data;
using AddonService.DTO;

namespace TestConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            //System.Configuration.ConfigurationManager.ConnectionStrings["AddonConnectionString"].ConnectionString = ""
            DataProvider.InsertAnnotation(new Annotation
            {
                Url = "www.testdomain.com",
                TagId = "Test Tag Id",
                Comment = "Some Comment",
                Content = "Some content"
            });

            DataProvider.InsertAnnotation(new Annotation
            {
                Url = "www.testdomain.com",
                TagId = "Test Tag Id",
                Comment = "Some Comment",
                Content = "Some content"
            });

            DataProvider.InsertAnnotation(new Annotation
            {
                Url = "www.testdomain.com",
                TagId = "Test Tag Id",
                Comment = "Some Comment",
                Content = "Some content"
            });

            foreach (Annotation annot in DataProvider.GetAllAnnotation())
                Console.WriteLine(String.Format("URL: {0}, Tag_Id: {1}, Content {2}, Comment{3}", annot.Url, annot.TagId, annot.Content, annot.Comment));
        }
    }
}
